package parts;

public class Part extends APart {

	private String name;
	private double value;
	
	public Part(String newName, double newValue) {
		name = newName;
		value = newValue;
	}
	
	@Override
	public String getName() {
		return name;
	}

	@Override
	public double getValue() {
		return value;
	}

	@Override
	public void setName(String newName) {
		name = newName;
	}

	@Override
	public void setValue(double newValue) {
		value = newValue;
	}
	
	public String toString() {
		return name;
	}

}
